#ifndef MOUSECLICK_H_
#define MOUSECLICK_H_
#include "Action.h"

#include <SFML/Graphics.hpp>

#include "../core/Global.h"
#include "../collider/CollisionRay.h"

class MouseClick : public Action {
    private:
        sf::Mouse::Button button;
        bool pressed;
        bool tapped;
        static MouseClick* instance;

    public:
        static MouseClick* getInstance();
        MouseClick(sf::Mouse::Button);
        virtual ~MouseClick();
        void update();
        void setKey(sf::Mouse::Button button);
        bool isPressed();
        bool isTapped();

        CollisionRay* rayCasting(sf::RenderWindow&);
};

#endif /* MOUSECLICK_H_ */
